Package-level declarations
Types
Utility class to create Identifiers and RegistryKeys using a specified namespace and registry.
Utility class to register content to Minecraft registries.
Utility class to create Identifiers and TagKeys using a specified namespace and registry.
Properties
Inherited properties
Gets the approximate position of the item in the staff, when held my an entity.
Gets the approximate position of the staff's tip, when held by an entity.
Calculates the camera's upward direction based on Entity.getFacing and Entity.getHorizontalFacing.
Checks if the user has sufficient space in front to use the staff.
Returns if the given item has a registered handler when inserted into a staff.
Checks if the player's attack is on cooldown.
Checks if an item is added the given staff item stack.
Gets the item inserted into the given staff item stack.
Gets the item stack inserted into the given staff item stack. The value returned MUST NOT be modified in any way, use mutableItemStackInStaff instead.
Gets or sets a copy of the item stack inserted into the given staff item stack. The value returned or passed in can be freely modified.
Returns the registered staff handler of the given item if available.
Returns the registered staff handler of the given item if available, StaffHandler.Fallback otherwise.
Functions
Creates an EntityAttributeModifier, which changes the attack damage to totalAttackDamage after subtracting the player's base attack damage.
Creates an EntityAttributeModifier, which changes the attack speed to totalAttackSpeed after subtracting the player's base attack speed.
Sorts input using counting sort into a new array and returns it. The input array will not be changed.
Creates a BlockBox from encompassing the given positions.
Creates a BlockBox from encompassing the given vectors.
Creates an EntityAttributeModifier, which changes the attack speed to the reciprocal of totalEquipTime after subtracting the player's base attack speed.
Creates an EntityAttributeModifier, which increases the interaction range by additionalRange.
Inherited functions
Utility function to create a DamageSource.
Gets an enchantment level on an item
Gets the spawn position if the given entity has enough space to spawn at the given position, or null
, if the position is obstructed by blocks.
Increments Stats.USED of item by 1.
Increments StatTypes.usedItemInStaff of item by 1.
Checks is an item is enchanted with enchantment
Checks if the given item is on cooldown and cannot be used.